﻿using AutoMapper;
using B.S.BasicData.Api.Write.Application.Command.Approval;
using B.S.BasicData.Api.Write.Application.Command.Menu;
using B.S.BasicData.Api.Write.Application.Command.User;
using B.S.BasicData.Domain.Entity;
using B.S.BasicData.Domain.Entity.Approval;
using B.S.BasicData.Domian.Entitys;

namespace B.S.BasicData.Api.Write
{
    public class MapperProfile:Profile
    {
        public MapperProfile()
        {
            CreateMap<CreateUserCommand, UsersModel>().ReverseMap();
            CreateMap<UpdateUserCommand,UsersModel>().ReverseMap();

            CreateMap<CreateRoleCommand, RoleModel>();
            CreateMap<UpdateRoleCommand, RoleModel>();

            CreateMap<CreatePathCommand, PathModel>();
            CreateMap<UpdatePathCommand, PathModel>();

            CreateMap<CreateApprovalCommand, ApprovalModel>();
            CreateMap<UpdateApprovalCommand, ApprovalModel>();
        }
    }
}
